﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NFlickr.Core.Interface;
using System.Collections.Specialized;

namespace NFlickr.RESTServiceProvider
{
    public class FlickrREST : IRESTServiceProvider
    {


        public string GetQueryString(Dictionary<string, string> paramList,string secret)
        {
            var resultList = from para in paramList
                             orderby para.Key ascending
                             select new { para.Key,para.Value};



            string result = string.Empty;
            foreach (var item in resultList)
            {
                result += item.Key + item.Value;
            }
            return secret + result;
        }

    }
}
